package cn.tedu.oa_system.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @Author MW
 * @Description 考勤表实体类
 * @CreateDate 2023/2/26
 */
@Data
@TableName(value = "attends_list")
public class Attends implements Serializable {

    static final long serialVersionUID = 1L;

    @TableId
    private Long attendsId;

    private String attendsIp;

    private String attendsRemark;

    private Date attendsTime;

    private Long statusId;

    private Long typeId;

    private Long attendsUserId;

    private String attendTime;

    private String weekOfDay;

    private Double holidayDays;

    private Date holidayStart;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Attends attends = (Attends) o;
        return Objects.equals(attendsId, attends.attendsId) && Objects.equals(attendsIp, attends.attendsIp) && Objects.equals(attendsRemark, attends.attendsRemark) && Objects.equals(attendsTime, attends.attendsTime) && Objects.equals(statusId, attends.statusId) && Objects.equals(typeId, attends.typeId) && Objects.equals(attendsUserId, attends.attendsUserId) && Objects.equals(attendTime, attends.attendTime) && Objects.equals(weekOfDay, attends.weekOfDay) && Objects.equals(holidayDays, attends.holidayDays) && Objects.equals(holidayStart, attends.holidayStart);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attendsId, attendsIp, attendsRemark, attendsTime, statusId, typeId, attendsUserId, attendTime, weekOfDay, holidayDays, holidayStart);
    }

    @Override
    public String toString() {
        return "Attends{" +
                "attendsId=" + attendsId +
                ", attendsIp='" + attendsIp + '\'' +
                ", attendsRemark='" + attendsRemark + '\'' +
                ", attendsTime=" + attendsTime +
                ", statusId=" + statusId +
                ", typeId=" + typeId +
                ", attendsUserId=" + attendsUserId +
                ", attendTime='" + attendTime + '\'' +
                ", weekOfDay='" + weekOfDay + '\'' +
                ", holidayDays=" + holidayDays +
                ", holidayStart=" + holidayStart +
                '}';
    }
}